// samsting : this file is auto create.

#include "Yundun/2015-04-16/GetDdosConfigOptionsResponse.h"

namespace aliyun { namespace Yundun {

GetDdosConfigOptionsResponse::GetDdosConfigOptionsResponse() {
}

int64 GetDdosConfigOptionsResponse::RequestThresholdOption::GetBps(void) const {
  return Bps_;
}

int64 GetDdosConfigOptionsResponse::RequestThresholdOption::GetPps(void) const {
  return Pps_;
}

int64 GetDdosConfigOptionsResponse::ConnectionThresholdOption::GetSipconn(void) const {
  return Sipconn_;
}

int64 GetDdosConfigOptionsResponse::ConnectionThresholdOption::GetSipnew(void) const {
  return Sipnew_;
}

const std::vector<GetDdosConfigOptionsResponse::RequestThresholdOption>& GetDdosConfigOptionsResponse::GetRequestThresholdOptions1(void) const {
  return RequestThresholdOptions1_;
}

const std::vector<GetDdosConfigOptionsResponse::RequestThresholdOption>& GetDdosConfigOptionsResponse::GetRequestThresholdOptions2(void) const {
  return RequestThresholdOptions2_;
}

const std::vector<GetDdosConfigOptionsResponse::ConnectionThresholdOption>& GetDdosConfigOptionsResponse::GetConnectionThresholdOptions(void) const {
  return ConnectionThresholdOptions_;
}

const std::vector<value>& GetDdosConfigOptionsResponse::GetQpsOptions1(void) const {
  return QpsOptions1_;
}

const std::vector<value>& GetDdosConfigOptionsResponse::GetQpsOptions2(void) const {
  return QpsOptions2_;
}

const char* GetDdosConfigOptionsResponse::BaseKey(void) {
  return "GetDdosConfigOptionsResponse";
}

void GetDdosConfigOptionsResponse::UnmarshallerMap(std::map<string, string>& response_map) {
  int RequestThresholdOptions1__length = 0;
  UnmarshallerInt(RequestThresholdOptions1__length, response_map, "GetDdosConfigOptionsResponse.RequestThresholdOptions1.Length");
  if(RequestThresholdOptions1__length >= 0) {
    RequestThresholdOptions1_.resize(RequestThresholdOptions1__length);
    for(int i1 = 0; i1 < RequestThresholdOptions1__length; i1++) {
      UnmarshallerInt64(RequestThresholdOptions1_[i1].Bps_, response_map, "GetDdosConfigOptionsResponse.RequestThresholdOptions1["+string_ValueOfInt(i1)+"].Bps");
      UnmarshallerInt64(RequestThresholdOptions1_[i1].Pps_, response_map, "GetDdosConfigOptionsResponse.RequestThresholdOptions1["+string_ValueOfInt(i1)+"].Pps");
    } // for(int i1 = 0; i1 < RequestThresholdOptions1__length; i1++) {
  } // if(RequestThresholdOptions1__length >= 0) {

  int RequestThresholdOptions2__length = 0;
  UnmarshallerInt(RequestThresholdOptions2__length, response_map, "GetDdosConfigOptionsResponse.RequestThresholdOptions2.Length");
  if(RequestThresholdOptions2__length >= 0) {
    RequestThresholdOptions2_.resize(RequestThresholdOptions2__length);
    for(int i1 = 0; i1 < RequestThresholdOptions2__length; i1++) {
      UnmarshallerInt64(RequestThresholdOptions2_[i1].Bps_, response_map, "GetDdosConfigOptionsResponse.RequestThresholdOptions2["+string_ValueOfInt(i1)+"].Bps");
      UnmarshallerInt64(RequestThresholdOptions2_[i1].Pps_, response_map, "GetDdosConfigOptionsResponse.RequestThresholdOptions2["+string_ValueOfInt(i1)+"].Pps");
    } // for(int i1 = 0; i1 < RequestThresholdOptions2__length; i1++) {
  } // if(RequestThresholdOptions2__length >= 0) {

  int ConnectionThresholdOptions__length = 0;
  UnmarshallerInt(ConnectionThresholdOptions__length, response_map, "GetDdosConfigOptionsResponse.ConnectionThresholdOptions.Length");
  if(ConnectionThresholdOptions__length >= 0) {
    ConnectionThresholdOptions_.resize(ConnectionThresholdOptions__length);
    for(int i1 = 0; i1 < ConnectionThresholdOptions__length; i1++) {
      UnmarshallerInt64(ConnectionThresholdOptions_[i1].Sipconn_, response_map, "GetDdosConfigOptionsResponse.ConnectionThresholdOptions["+string_ValueOfInt(i1)+"].Sipconn");
      UnmarshallerInt64(ConnectionThresholdOptions_[i1].Sipnew_, response_map, "GetDdosConfigOptionsResponse.ConnectionThresholdOptions["+string_ValueOfInt(i1)+"].Sipnew");
    } // for(int i1 = 0; i1 < ConnectionThresholdOptions__length; i1++) {
  } // if(ConnectionThresholdOptions__length >= 0) {

    int QpsOptions1__length = 0;
    UnmarshallerInt(QpsOptions1__length, response_map, "GetDdosConfigOptionsResponse.QpsOptions1.Length");
    if(QpsOptions1__length >= 0) {
      QpsOptions1_.resize(QpsOptions1__length);
      for(int i1 = 0; i1 < QpsOptions1__length; i1++) {
      UnmarshallerString(QpsOptions1_[i1], response_map, "GetDdosConfigOptionsResponse.QpsOptions1["+string_ValueOfInt(i1)+"]");
      } // for(int i1 = 0; i1 < QpsOptions1__length; i1++) {
    } // if(QpsOptions1__length >= 0) {

    int QpsOptions2__length = 0;
    UnmarshallerInt(QpsOptions2__length, response_map, "GetDdosConfigOptionsResponse.QpsOptions2.Length");
    if(QpsOptions2__length >= 0) {
      QpsOptions2_.resize(QpsOptions2__length);
      for(int i1 = 0; i1 < QpsOptions2__length; i1++) {
      UnmarshallerString(QpsOptions2_[i1], response_map, "GetDdosConfigOptionsResponse.QpsOptions2["+string_ValueOfInt(i1)+"]");
      } // for(int i1 = 0; i1 < QpsOptions2__length; i1++) {
    } // if(QpsOptions2__length >= 0) {

}


} } // namespace aliyun { namespace Yundun {

// end of file 
